home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5081 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: news.lpr.carel.fi!usenet
  2. From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Svga mode... how?
  5. Date: Fri, 02 Feb 1996 14:17:12 +0200
  6. Organization: Carelcomp Forest
  7. Message-ID: <311200C8.3DEC@cmt.lpr.mail.carel.fi>
  8. References: <4edpao$13tm@darwin.nbnet.nb.ca>
  9. NNTP-Posting-Host: renoir.cclahti.carel.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  14.  
  15. Michel Lanteigne wrote:
  16. >    Is there a way to drop to Svga mode, in 640,400 x 256color  more
  17. > precisly,  in assembler??? If no, how??  Do u have ne source code of a
  18. > C++ prog that use Svga mode??
  19. >                                 --> Michel <--
  20.  
  21. It usually goes like this:
  22.  
  23.     mov    ah,0    // 0 = set mode
  24.     mov    al,mode    // mode = desired mode number, depends on the chip on the display
  25.             // adapter
  26.     int    0x10    // execute video services
  27.  
  28. The mode numbers are different for different chip manufacturers (eg. Headland [Video7], 
  29. S3, Matrox, etc). Your display adapter's manual usually lists some of those modes; 
  30. additional information can be obtained from the chip's (or adapter's) manufacturer. Also, 
  31. you generally need to take care of bank switching and bit planes switching in some 
  32. display modes, which is adapter-dependant.
  33.  
  34. Later,
  35.  AriL
  36. -- 
  37. All my opinions are mine and mine alone.
  38.